package com.test.server.controller;

import com.test.server.bean.Customer;
import com.test.server.server.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 描述:
 *
 * @outhor hekang
 * @create 2018-08-01 下午5:13
 */
@RestController
public class CustomerController {
    @Autowired
    private CustomerService customerService;


    @RequestMapping("/findByCustomerState")
    public List<Customer> findByCustomerState(){
        return  this.customerService.findByCustomerState(0);
    }

}